import numpy as np


def filterPoint(data):
    if len(data) == 0:
        return []
    new_data = data
    for i in range(data.shape[0]):
        if np.abs(data[i][0]) > 20 or data[i][1] < 1 or data[i][1] > 40:
            new_data = np.delete(data, i, 0)
    return new_data
